<?php
/**
 * CreateTime: 2022/10/28 10:05
 */

namespace App\Http\Controllers\Company;

use App\Http\Controllers\Controller;
use App\Models\MeLawCase\MeLawCaseLawLetterModel;
use Illuminate\Support\Facades\Storage;

class TestController  extends Controller
{
    public function tt(){
        $str = "查询[table-]tablex[-table]中的[select-]xxx[-select]条件是tablex中的zz等于1而且tablex中的yy等于2";
        $sql = "select xxx from tablex where tablex.zz = 1 and tablex.yy = 2";
        $tableStart = mb_strpos($str,"[table-]");
        $tableEnd = mb_strpos($str,"[-table]");
        echo mb_substr($str,$tableStart+mb_strlen("[table-]"),$tableEnd-($tableStart+mb_strlen("[table-]")));
    }






}